<template>
  <div>
    <todoInput />
    <todoList />
    <p>todoList 数量：{{todoCount}}</p>
    <pre>{{$store.state}}</pre>
  </div>
</template>
<script>
import todoInput from './index.vue'
import todoList from './content.vue'
import {mapGetters} from 'vuex'
export default {
  data () {
    return {}
  },
  computed: {
    ...mapGetters({
      todoCount: 'nCounts'
    })
  },
  components: {
    todoInput,
    todoList
  }
}
</script>
